package cn.edu.xmu.oomall.product.mapper.openfeign;

import cn.edu.xmu.javaee.core.model.InternalReturnObject;
import cn.edu.xmu.oomall.product.mapper.openfeign.po.Shop;
import cn.edu.xmu.oomall.product.mapper.openfeign.po.Template;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Repository("ShopMapper")
public class Shop0Mapper implements ShopMapper {
    public InternalReturnObject<Shop> getShopById( Long id){
        Shop shop = new Shop();
        shop.setId(1L);
        shop.setName("测试店铺");
        return new InternalReturnObject<>(shop);
    }
    public InternalReturnObject<Template> getTemplateById(Long shopId,  Long id){
        Template template = new Template();
        template.setId(19L);
        template.setName("优费计件模板");
        return new InternalReturnObject<>(template);
    }
}
